package com.diamond.bo;

import java.io.Serializable;

import com.diamond.util.DiamondUtil;

public class ClientOrderDetailBO implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 7413874833628744899L;
	private Long cliOrdrDetailId;
	private Long cliOrdMasterId;
	private String orderNo;
	private String cmpName;
	private String orderCmpName;
	private String remark;
	private Integer amount;
	private String name;
	private String batch;
	private String supplierName;
	private String reportNo;
	private Double weight;
	private String color;
	private String clarity;
	private String finalCut;
	private String polish;
	private String lab;
	private String symmetry;
	private String HR;
	private String fluor;
	private String shape;
	private Double price;
	private Double midPrice;
	private Long inlayDiamondId;
	private Long inlayUserId;
	private String inlayBatch;
	private String inlayDiaBatch;
	private String inlayFactoryBatch;
	private String material;
	private String hand;
	private String text;
	private String submit;
	private String type;
	private String state;
	private String orderDate;
	private String payState = "0";
	private String deliverGoodsState = "0";

	private String userName;        //经销商名称
	private String priceFormat;
	private String midPriceFormat;
	private String stateName; 
	private String payStateName;
	private String deliverGoodsStateName;
	
	public Long getCliOrdrDetailId() {
		return cliOrdrDetailId;
	}
	public void setCliOrdrDetailId(Long cliOrdrDetailId) {
		this.cliOrdrDetailId = cliOrdrDetailId;
	}
	public Long getCliOrdMasterId() {
		return cliOrdMasterId;
	}
	public void setCliOrdMasterId(Long cliOrdMasterId) {
		this.cliOrdMasterId = cliOrdMasterId;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public Integer getAmount() {
		return amount;
	}
	public void setAmount(Integer amount) {
		this.amount = amount;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getBatch() {
		return batch;
	}
	public void setBatch(String batch) {
		this.batch = batch;
	}
	public String getSupplierName() {
		return supplierName;
	}
	public void setSupplierName(String supplierName) {
		this.supplierName = supplierName;
	}
	public String getReportNo() {
		return reportNo;
	}
	public void setReportNo(String reportNo) {
		this.reportNo = reportNo;
	}
	public Double getWeight() {
		return weight;
	}
	public void setWeight(Double weight) {
		this.weight = weight;
	}
	public String getColor() {
		return color;
	}
	public void setColor(String color) {
		this.color = color;
	}
	public String getClarity() {
		return clarity;
	}
	public void setClarity(String clarity) {
		this.clarity = clarity;
	}
	public String getFinalCut() {
		return finalCut;
	}
	public void setFinalCut(String finalCut) {
		this.finalCut = finalCut;
	}
	public String getPolish() {
		return polish;
	}
	public void setPolish(String polish) {
		this.polish = polish;
	}
	public String getLab() {
		return lab;
	}
	public void setLab(String lab) {
		this.lab = lab;
	}
	public String getSymmetry() {
		return symmetry;
	}
	public void setSymmetry(String symmetry) {
		this.symmetry = symmetry;
	}
	public String getHR() {
		return HR;
	}
	public void setHR(String hr) {
		HR = hr;
	}
	public String getFluor() {
		return fluor;
	}
	public void setFluor(String fluor) {
		this.fluor = fluor;
	}
	public String getShape() {
		return shape;
	}
	public void setShape(String shape) {
		this.shape = shape;
	}
	public Double getPrice() {
		return price;
	}
	public void setPrice(Double price) {
		this.price = price;
	}
	public Double getMidPrice() {
		return midPrice;
	}
	public void setMidPrice(Double midPrice) {
		this.midPrice = midPrice;
	}
	public Long getInlayDiamondId() {
		return inlayDiamondId;
	}
	public void setInlayDiamondId(Long inlayDiamondId) {
		this.inlayDiamondId = inlayDiamondId;
	}
	public void setPriceFormat(String priceFormat) {
		this.priceFormat = priceFormat;
	}
	public void setMidPriceFormat(String midPriceFormat) {
		this.midPriceFormat = midPriceFormat;
	}
	public String getSubmit() {
		return submit;
	}
	public void setSubmit(String submit) {
		this.submit = submit;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public String getOrderDate() {
		return orderDate;
	}
	public void setOrderDate(String orderDate) {
		this.orderDate = orderDate;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getOrderNo() {
		return orderNo;
	}
	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}
	public String getStateName() {
		if ("0".equals(this.getState())) {
			this.setStateName("未处理");
		} else if ("1".equals(this.getState())) {
			this.setStateName("订购成功");
		} else if ("2".equals(this.getState())) {
			this.setStateName("订购失败");
		}
		return stateName;
	}
	public void setStateName(String stateName) {
		this.stateName = stateName;
	}
	public String getPayState() {
		return payState;
	}
	public void setPayState(String payState) {
		this.payState = payState;
	}
	
	public String getDeliverGoodsState() {
		return deliverGoodsState;
	}
	public void setDeliverGoodsState(String deliverGoodsState) {
		this.deliverGoodsState = deliverGoodsState;
	}
	
	public String getDeliverGoodsStateName() {
		if ("0".equals(this.getDeliverGoodsState())) {
			this.setDeliverGoodsStateName("未发货");
		} else if ("1".equals(this.getDeliverGoodsState())) {
			this.setDeliverGoodsStateName("已发货");
		}
		return deliverGoodsStateName;
	}
	public void setDeliverGoodsStateName(String deliverGoodsStateName) {
		this.deliverGoodsStateName = deliverGoodsStateName;
	}
	public String getPayStateName() {
		if ("0".equals(this.getPayState())) {
			this.setPayStateName("未付款");
		} else if ("1".equals(this.getPayState())) {
			this.setPayStateName("已付款");
		} 
		return payStateName;
	}
	public void setPayStateName(String payStateName) {
		this.payStateName = payStateName;
	}
	public String getPriceFormat() {
		return DiamondUtil.DoubleFormat(price);
	}
	public String getMidPriceFormat() {
		return DiamondUtil.DoubleFormat(midPrice);
	}
	public String getInlayBatch() {
		return inlayBatch;
	}
	public void setInlayBatch(String inlayBatch) {
		this.inlayBatch = inlayBatch;
	}
	public String getInlayDiaBatch() {
		return inlayDiaBatch;
	}
	public void setInlayDiaBatch(String inlayDiaBatch) {
		this.inlayDiaBatch = inlayDiaBatch;
	}
	public String getMaterial() {
		return material;
	}
	public void setMaterial(String material) {
		this.material = material;
	}
	public String getHand() {
		return hand;
	}
	public void setHand(String hand) {
		this.hand = hand;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public Long getInlayUserId() {
		return inlayUserId;
	}
	public void setInlayUserId(Long inlayUserId) {
		this.inlayUserId = inlayUserId;
	}
	public String getInlayFactoryBatch() {
		return inlayFactoryBatch;
	}
	public void setInlayFactoryBatch(String inlayFactoryBatch) {
		this.inlayFactoryBatch = inlayFactoryBatch;
	}
	public String getCmpName() {
		return cmpName;
	}
	public void setCmpName(String cmpName) {
		this.cmpName = cmpName;
	}
	public String getOrderCmpName() {
		return orderCmpName;
	}
	public void setOrderCmpName(String orderCmpName) {
		this.orderCmpName = orderCmpName;
	}

}
